package com.xiaobai.zhuangxiuguanjia.model;

import org.json.JSONObject;

/**
 * Created by Administrator on 2015/6/15 0015.
 */
public class HeadViewData {
    private String adid;
    private String imgurl;
    private int linktype;
    private String linkurl;
    private int showtime;
    private long begintime;
    private long endtime;
    private int imgtype;
    private String packagename;
    private String classname;
    private String downloadurl;
    public void parseJSON(JSONObject json){
        adid = json.optString("adid");
        imgurl = json.optString("imgurl");
        linktype = json.optInt("linktype");
        linkurl = json.optString("linkurl");
        showtime = json.optInt("showtime");
        begintime = json.optLong("begintime");
        endtime = json.optLong("endtime");
        imgtype = json.optInt("imgtype");
        packagename = json.optString("packagename");
        classname = json.optString("classname");
        downloadurl = json.optString("downloadurl");

    }

    public String getAdid() {
        return adid;
    }

    public String getImgurl() {
        return imgurl;
    }

    public int getLinktype() {
        return linktype;
    }

    public String getLinkurl() {
        return linkurl;
    }

    public int getShowtime() {
        return showtime;
    }

    public long getBegintime() {
        return begintime;
    }

    public long getEndtime() {
        return endtime;
    }

    public int getImgtype() {
        return imgtype;
    }

    public String getPackagename() {
        return packagename;
    }

    public String getClassname() {
        return classname;
    }

    public String getDownloadurl() {
        return downloadurl;
    }
}
